<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  <input type="button" value="按钮1" v-on:click="f()">
  <input type="button" value="按钮2" @click="f()">
  {{info}}
</div>
<script src="../js/vue.js"></script>
<script>
  let v = new Vue({
    el:"div",
    data:{info:"时间绑定"},
    method:{
      f:function () {
        v.info="按钮1点击"
      },
      ff(){
        v.info="按钮2点击"
      }
    }
  })
</script>
</body>
</html>